package LeetCode.exercise;

import java.util.Arrays;

public class LC_88 {
    public static void main(String[] args) {
        int[] nums1 = {0};
        int[] nums2 = {1};
        int m = 0, n = 1;
        merge(nums1,m,nums2,n);
        for (int i : nums1) {
            System.out.print(i + " ");
        }

    }
    public static void merge(int[] nums1, int m, int[] nums2, int n){
        for (int i = 0; i < nums2.length; i++) {
            nums1[m++] = nums2[i];
        }
        Arrays.sort(nums1);
    }
}
